<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    * {
        padding: 0;
        margin: 0;
    }
    
    .bj img {
        margin-top: 10px;
        width: 95%;
        height: 150px;
        border-radius: 15px;
    }
    
    .bj {
        width: 100%;
        height: 150px;
        text-align: center;
    }
    
    .shop {
        padding: 5px;
        margin-bottom: 10px;
        display: flex;
        height: 100px;
        /* background-color: aqua; */
        border: 1px solid #c9c1c1;
    }
    
    .shop .left {
        width: 30%;
        height: 100%;
        /* background-color: red; */
    }
    
    .shop .left img {
        width: 100%;
        height: 100%;
        border: 1px solid #aea4a4;
    }
    
    .shop .right {
        font-size: 12px;
        color: #676565;
        margin-left: 10px;
        float: right;
        /* width: 30%; */
        height: 130px;
    }
    
    .shop .right .name {
        font-weight: 700;
        font-size: 16px;
        margin-bottom: 7px;
        color: black;
    }
    
    .shop .right .peisong {
        float: right;
        padding-left: 17px;
        /* background-color: violet; */
        right: 2px;
    }
    
    .shop .right .name .app {
        width: 100%;
        height: 60px;
        color: white;
        font-weight: 700;
        /* padding: 10px; */
        background-color: deepskyblue;
    }
    
    .app .pad {
        padding-left: 10px;
        padding-top: 5px;
    }
    
    .int {
        width: 100%;
        display: flex;
    }
    
    input {
        width: 90%;
        height: 25px;
        text-align: center;
        border: 0px;
        border-radius: 25px;
        margin: 0 auto;
        margin-top: 5px;
        background-color: #f5e9e9;
    }
    
    .like {
        margin: 10px 0px;
        font-weight: 700;
    }
    
    .paixu {
        display: flex;
        text-align: center;
        justify-content: space-between;
    }
    
    .paixu .paixu1 {
        width: 25%;
        margin-bottom: 10px;
        /* background-color: aqua; */
        justify-content: space-between;
    }
    
    .paixu .font {
        font-size: 12px;
        color: darkslategray;
        /* border: 1px solid red; */
        background-color: #f5e9e9;
        width: 20%;
        padding: 5px;
    }
    
    .footer {
        display: flex;
        /* border: 1px solid red; */
        justify-content: space-around;
    }
    
    .footer div {
        text-align: center;
        /* border: 1px solid black; */
        width: 20%;
    }
    
    .active {
        color: red;
    }
</style>

<body>
    <div id="elm">
        <div class="app">
            <div class="pad">饿了么</div>
            <div class="int">
                <input type="text" placeholder="输入商家,商品名称" />
            </div>
        </div>
        <div class="bj">
            <img src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.cndesign.com%2Fupload%2Fnews%2Fday_160719%2F201607191150535543.gif&refer=http%3A%2F%2Fimg.cndesign.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668084872&t=8dfa04b106727e2d5d5d6c7363dac34a"
                alt="" />
        </div>
        <div style="padding: 10px;">
            <div class="like">猜你喜欢</div>
            <div class="paixu">
                <span v-text="item" :class="{active:gaoliang1==index}" @click="jilu(index)" v-for="(item,index) in like"></span>
            </div>
            <div class="paixu">
                <span class="paixu1 font" v-for="(item,index) in reduce">{{item}}</span>
            </div>
            <div class="shop" v-for="(item,index) in store">
                <div class="left">
                    <img :src="item.pic" class="pic" />
                </div>
                <div class="right">
                    <div class="name" v-text="item.name"></div>
                    <div>
                        <span class="estimate">{{item.estimate}}</span>&nbsp;
                        <span class="month_sales">月售:{{item.month_sales}}</span>
                    </div>
                    <div>
                        <span class="price">起送￥{{item.price}}</span>&nbsp;
                        <span class="send">远距离配送￥{{item.send}}</span>
                        <div class="peisong">
                            <span class="time">{{item.time}}分钟</span>
                            <span class="distance">{{item.distance}}km</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="footer">
            <div :class="{active:gaoliang==index}" @click="qiehuan(index)" v-for="(item,index) in footer">
                {{item}}
            </div>
        </div>
    </div>
    <script src="vue-2.5.21.js"></script>
    <script src="排序.js"></script>
</body>

</html>